/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: CanType.h
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: CAN
*
*******************************************************************************/
#ifndef CANTYPE_H
#define CANTYPE_H

/** HEADER FILES **/
#include "PlatformType.h"
#include "PlatformCfg.h"
#include "ComStackType.h"


/** MACRO DEFINITION **/


/** TYPEDEF DEFINITION **/
typedef uint32 Can_IdType;

typedef uint8 Can_HwHandleType;
#define CanConf_HwHandle_Can_0 ((Can_HwHandleType)0u)
#define CanConf_HwHandle_Can_Max ((Can_HwHandleType)1u)

typedef struct
{
  Can_IdType CanId;
  Can_HwHandleType Hoh;
  uint8 ControllerId;
}Can_HwType;


typedef struct
{
  PduIdType swPduHandle;
  uint8 length;
  Can_IdType id;
  uint8* sdu;
}Can_PduType;

#endif

